//
//  NSString+Helper.h
//  02.用户登录&注册
//
//  Copyright (c) 2013年 All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Helper)

+ (NSString *)stringThatDay:(NSDate *)day;

+ (NSString *)stringTime:(NSDate *)stateDate;

+ (NSString *)stringWeek:(NSDate *)stateDate;

+ (NSString *)stringMonth:(NSDate *)stateDate;

+ (NSMutableArray *)getArrayDates:(NSDate *)startDate type:(NSString *)str;

+ (NSMutableArray *)getArrayDatesformat:(NSDate *)startDate type:(NSString *)str;

//字符串转date
+ (NSDate *)stringToDate:(NSString *)strDate;

/**
 *  清空字符串中的空白字符
 *
 *  @return 清空空白字符串之后的字符串
 */
- (NSString *)trimString;

/**
 *  是否空字符串
 *
 *  @return 如果字符串为nil或者长度为0返回YES
 */
- (BOOL)isEmptyString;

/**
 *  返回沙盒中的文件路径
 *
 *  @return 返回当前字符串对应在沙盒中的完整文件路径
 */
- (NSString *)documentsPath;

/**
 *  写入系统偏好
 *
 *  @param key 写入键值
 */
- (void)saveToNSDefaultsWithKey:(NSString *)key;

- (void)getFromNSDefaultsWithKey:(NSString *)key;


@end
